﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace DataStructCenter
{
    public class Result
    {
        public string Message { get; set; }
        public int Code { get; set; }

        public Result(int Code,string Message)
        {
            this.Code = Code;
            this.Message = Message;
        }

        public static  Result Success
        {
            get {
                return new Result(200,"请求成功");
            }
        }

        public static Result Failure
        {
            get
            {
                return new Result(500, "请求失败");
            }
        }


    }
}
